namespace test05 {

    // 内置对象类型：Boolean、Number、string、RegExp、Date、Error
    let b: Boolean = new Boolean(1)
    console.log(b); // [Boolean: true]
    let n: Number = new Number(true)
    console.log(n); // [Number: 1]
    let s: String = new String('bilibili')
    console.log(s); // [String: 'bilibili']
    let d: Date = new Date()
    console.log(d); // 2024-08-27T15:36:59.293Z 当前时间
    let r: RegExp = /^1/
    console.log(r); // /^1/
    let e: Error = new Error('error message');
    console.log(e); // error message

    // DOM 和 BOM 的内置对象
    // Document、HTMLElement、Event、NodeList 等
    let body: HTMLElement = document.body
    let allDiv = document.querySelector('div') as HTMLDivElement
    document.addEventListener('click', function (e: MouseEvent) {

    })


    let doc: Document = document

    let liEle1: HTMLLIElement | null = document.querySelector('li')

    let liEli2 = document.querySelector('li') as HTMLLIElement

    let liEleArr1: NodeListOf<HTMLLIElement> = document.querySelectorAll('li')

    let divEl = document.querySelector('.header') as HTMLDivElement

}